import React from 'react'
import {Switch, Route, Redirect} from 'react-router-dom'

export default (
  <Switch>
    <Route
      path="/home/system"
      component={require('./containers/Home').default} />
    <Route
      path="/home/seeting"
      component={require('./containers/Seeting').default}
    />
    <Route
      path="/home/logs"
      component={require('./containers/Logs').default}
    />
    <Route
      path="/home/operate"
      component={require('./containers/Operate').default}
    />
    <Route
      path="/CRM/clueSystem"
      component={require('./containers/ClueSystem').default}
    />
    <Route
      path="/CRM/resourceSystem"
      component={require('./containers/ResourceSystem').default}
    />
    <Route
      path="/CRM/myClue"
      component={require('./containers/MyClue').default}
    />
    <Route
      path="/CRM/myClient"
      component={require('./containers/MyClient').default}
    />
    <Route
      path="/CRM/internationSystem"
      component={require('./containers/InternationSystem').default}
    />
    <Route
      path="/CRM/clientSystem"
      component={require('./containers/ClientSystem').default}
    />
    <Route
      path="/CRM/internation"
      component={require('./containers/Internation').default}
    />
    <Route
      path="/CRM/internationRule"
      component={require('./containers/InternationRule').default}
    />
    <Route
      path="/personnel/PermissionSystem"
      component={require('./containers/PermissionSystem').default}
    />
    {/*<Route*/}
      {/*path="/test"*/}
      {/*component={require('./containers/TestLiu').default}*/}
    {/*/>*/}
    <Route
      path="/detail/:id"
      component={require('./containers/Detail').default}
    />
    <Route
      path="/clue"
      component={require('./containers/Clue').default}
    />
    <Route
      path="/login"
      component={require('./containers/Login').default}
    />
    <Redirect to="/login" />
  </Switch>
)
